package com.bookcycle.panda.webfront.constant;

/**
 * @author Mason
 * @date 2018/2/4
 */
public class URLConstant {
    /**服务器IP*/
    public static final String HOST="http://192.168.199.114";

    /**
     * 用户微服务URL
     */
    /**服务器IP*/
    public static final String HOST_USER="http://111.230.107.192:8024";
    //public static final String HOST_USER="http://127.0.0.1:8024";
    //public static final String HOST="http://111.230.107.192:8024";
    public static final String URL_GET_ACCOUNT=URLConstant.HOST_USER+"/account/getAccount";
    public static final String URL_SAVE_ACCOUNT=URLConstant.HOST_USER+"/account/saveAccount";
    public static final String GET_ACCOUNT_BY_ID=URLConstant.HOST_USER+ "/account/getAccountById";
    public static final String UPDATE_ACCOUNT=URLConstant.HOST_USER+ "/account/updateAccount";

    public static final String URL_SAVE_USER=URLConstant.HOST_USER+"/user/saveUser";
    public static final String URL_GET_USER=URLConstant.HOST_USER+"/user/getUser";
    public static final String URL_UPDATE_USER=URLConstant.HOST_USER+"/user/updateUser";
    public static final String URL_GET_USER_BY_ID=URLConstant.HOST_USER+"/user/getUserById";


    /**
     * 文件微服务URL
     */
    public static final String HOST_PORT_FILE="http://111.230.107.192:8032/file/";
    /**1.上传文件*/
    public static final String URL_UPLOAD_FILE= URLConstant.HOST_PORT_FILE+ "uploadFile";
    /**2.下载文件*/
    public static final String URL_GET_AVATAR= URLConstant.HOST_PORT_FILE+ "getFile";

    /**
     *
     */
    public static final String URL_CHECKOUT_REQUEST="http://192.168.199.114:8033"+"/checkout/corequest/";

    /**
     * 房屋微服务URL
     */
    public static final String HOST_HOUSE="http://119.29.242.75";
    /**1.通过houseId查找房屋*/
    public static final String URL_GET_HOUSE=URLConstant.HOST_HOUSE+":8030/house/HouseInfoQuerying/{id}";
    /**2.列出所有房屋*/
    public static final String URL_LIST_HOUSES=URLConstant.HOST_HOUSE+":8030/house/getHouseList";

    /**
     * 订单微服务URL
     */
    /**1.列出某id用户的所有订单.*/
    public static final String URL_LIST_ORDERS="http://58.87.74.194:8031/order/queryByUserId/";

    /**
     *  房屋和锁的微服务
     */
    /**开锁相关*/
    public static final String HOST_DEVICE_OPENLOCKID ="http://119.29.242.75:9999/lockManager";
    /**1.通过房屋找匹配的锁*/
    public static final String HOST_LOCK_FIND="http://119.29.242.75:8040/find?housId={houseId}";

}
